<?
include_once("map/submitTroughImage.class.php");
$sti = new submitTroughImage();
$sti->setBackendPath('sti_tmp');
$sti->setFont("map/fonts/DESTROY_.TTF");


//set custom background image
$sti->setBackgroundImage("map/background.jpg");

//set colors RGB or HEX
$sti->setColor("#292929");

//set the amount of char in the code...
$sti->setCharAmount(7);

//set string type. (int, char or varchar)
$sti->setStringType('char');

//create image
$sti->createImage(170,32);
?>
<tr>
    <td class='td_label'>Code: </td>
    <td>
        <img src="/map/image.php?<?=$sti->getKey();?>" ><?=$sti->parseKeyInput();?>
    </td>
</tr>
<tr>
    <td></td>
    <td><?=$sti->parseStringInput();?></td>
</tr>